//
//  NewDetailController.m
//  AntsExpress
//
//  Created by slccper on 16/1/11.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "NewDetailController.h"

@interface NewDetailController ()
@property (weak, nonatomic) IBOutlet UILabel *lbTitle;
@property (weak, nonatomic) IBOutlet UITextView *lbText;

@end

@implementation NewDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view from its nib.
}
-(void)getWebData
{
    if (!ants) {
        ants = [[clsAntsService alloc]init];
        ants.delegate=self;
    }
    self.title=@"螞蟻公告";
    [clsOtherFun showLoadingView:@"正在獲取數據..."];
    [ants GetHotNewsEntity:[self.dic objectForKey:@"id"]];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)getAntsDataSuccess:(NSInteger)type :(NSMutableDictionary *)pDictionary
{
    [clsOtherFun hideLoadingView];
    NSDictionary *dic = [pDictionary objectForKey:@"data"];
    NSString *status = [dic objectForKey:@"status"];
    if ([status integerValue]==200) {
        NSDictionary *data = [dic objectForKey:@"data"];
        self.lbTitle.text = [data objectForKey:@"Title"];
        self.lbText.text = [data objectForKey:@"Content"];
    }else{
        [clsOtherFun ShowMsgWithNoData];
    }
}


@end
